﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL = Auto.Data.BusMan.BLL;
using Model = Auto.Data.BusMan.Model;

namespace Auto.BusMan.AddForm
{
    public partial class fmSecurityTrainingAddForm : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitPage();
            }
        }

        private void InitPage()
        {
            string docid = Request.QueryString["DocID"];
            BindData(docid);
        }

        private void BindData(string docid)
        {
            BLL.SecurityTraining bl = new BLL.SecurityTraining();
            Model.SecurityTraining model = bl.GetModel(docid);

            //this.lblCompanyID.Text = model.CompanyID;
            this.lblCompanyName.Text =new Auto.Data.HumanResource.Division( model.RecDivID).ShortName;
            this.lblDocID.Text = model.DocID;
            this.lblItem.Text = model.Item;
            this.lblTrainingContent.Text = model.TrainingContent;
            this.ucStudyMaterialFileShow.FileList = model.StudyMaterial;// this.lblStudyMaterial.Text = model.StudyMaterial;
            this.lblTrainingResult.Text = model.TrainingResult;

        }
    }
}